package com.xiaoai.poitest.service.impl;

import com.xiaoai.poitest.entity.PageData;
import com.xiaoai.poitest.mapper.UserMapper;
import com.xiaoai.poitest.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @Author
 * @Date 2021-07-07 21:59
 */
@Service
public class UserServiceImpl implements UserService{

//    @Autowired
//    UserMapper userMapper;

    @Override
    public List<PageData> serviceList() {
//        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
//        String format = sdf.format(new Date());
        List<PageData> ls = new ArrayList<>();
        PageData p;
        for (int i = 1; i <= 10; i++) {
             p= new PageData((long) i,"xiaoai"+i,"xiaoai"+i,"11111122233",new Date());
             ls.add(p);
        }
        return ls;
    }
}
